package com.qkl.xiatang.app.entity.message;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "message_type")
public class MessageTypeEntity {
    @TableId(type= IdType.ASSIGN_ID)
    private String id;

    private String title;

    private String image;

    private Integer type;

    private Integer sort;

    @TableField(exist = false)
    private Integer unreadCount = 0;

    public boolean unreadType(){
        return Integer.valueOf(100).equals(type);
    }

}
